package Java学习.基础;

public class GirlfriendTest {
    public static void main(String[] args) {
        //创建女朋友对象
        Girlfriend g = new Girlfriend();
        g.setName("君君");
        g.setAge(20);
        g.setGander("御姐");
        //女朋友行为
        System.out.println(g.getName());
        System.out.println(g.getAge());
        System.out.println(g.getGander());
        g.eat();
        g.sleep();
        //创建2号
        Girlfriend g2 = new Girlfriend();

    }
}
